package com.youxin.busfoundation.bean.recommend;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.youxin.busfoundation.enums.OrderType;
import com.youxin.foundation.utils.StringUtils;

/**
 * 定制器Bean版本1
 * 
 * @author yingde.cao
 *
 */
public class CustomizerBeanVersion1  {
	/**
	 * 查询类型,对应SystemType 0表示公司,1表示线索
	 */
	private List<String> industry;
	
	@JsonProperty("industry_small")
	private List<String> industrySmall;
	
	@JsonProperty("order_by")
	private int orderBy=1;
	
	private String by;
	
	@JsonProperty("pre_tags")
	private String preTags;
	@JsonProperty("post_tags")
	private String postTags;

	/**
	 * 企业规模
	 */
	private List<Integer> scale; 
	/**
	 * 成立年限
	 */
	@JsonProperty("establish_time")
	private List<Integer> establishTime;
	/**
	 * 注册资本
	 */
	@JsonProperty("registered_capital")
	private List<Integer> registeredCapital;

	private String province,city;	
	
//	private List<QueryClassifyBean> classify;	
//
//	public List<QueryClassifyBean> getClassify() {
//		return classify;
//	}
//
//	public void setClassify(List<QueryClassifyBean> classify) {
//		this.classify = classify;
//	}	
	
	public OrderType getOrderType()
	{
		if(StringUtils.isNullOrEmpty(by)){
			return OrderType.ASC;
		}
		OrderType orderType=OrderType.nameOf(by);
		if(orderType==null)
		{
			return OrderType.ASC;
		}
		return orderType;
	}
	
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public int getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(int orderBy) {
		this.orderBy = orderBy;
	}

	public String getBy() {
		return by;
	}

	public void setBy(String by) {
		this.by = by;
	}

	private String keywords;

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public List<Integer> getScale() {
		return scale;
	}

	public void setScale(List<Integer> scale) {
		this.scale = scale;
	}

	public List<Integer> getEstablishTime() {
		return establishTime;
	}

	public void setEstablishTime(List<Integer> establishTime) {
		this.establishTime = establishTime;
	}

	public List<Integer> getRegisteredCapital() {
		return registeredCapital;
	}

	public void setRegisteredCapital(List<Integer> registeredCapital) {
		this.registeredCapital = registeredCapital;
	}

	public List<String> getIndustry() {
		return industry;
	}

	public void setIndustry(List<String> industry) {
		this.industry = industry;
	}

	public List<String> getIndustrySmall() {
		return industrySmall;
	}

	public void setIndustrySmall(List<String> industrySmall) {
		this.industrySmall = industrySmall;
	}
	
}
